/*
 * @Author: funlee 
 * @Email: i@funlee.cn 
 * @Date: 2017-12-11 09:18:14 
 * @Last Modified time:   2017-12-11 09:18:14 
 * @Description: openlayer 第一个demo
 *               use "openlayers": "^4.2.0",
 */
import ol from 'openlayers'
import 'openlayers/dist/ol.css'

export default () => {
  console.log('render a map')
  var map = new ol.Map({
    target: 'map',
    layers: [
      new ol.layer.Tile({
        source: new ol.source.OSM()
      })
    ],
    view: new ol.View({
      center: [13078573.75444912, 4800741.73727404],
      zoom: 4
    })
  });
}